function total(a,b) { result=a+b return result }

sum=total(2,3)

The returned value from the function ([...](result)) will be stored in the variable called sum